package com.ttxs.common.core.constant;

public interface Api {
    String REMOTE_LOGIN = "/common/remote/login";
    /**
     * 公共功能请求前缀
     */
    String COMMON_PREFIX = "/common";
    interface Service {
        /**
         * UAA 服务
         */
        String UAA_SERVICE_NAME = "ttxs";
    }

    interface Platform {
        /**
         * 平台管理api路径跟公共菜单路径不同，以便鉴权操作
         */
        String PREFIX = "/common/platform";
        /**
         * 等值查询
         */
        String SEARCH = "/search/term";
    }
    /**
     * 公共api
     */
    interface Common {
        interface Platform {
            /**
             * 平台管理api路径跟公共菜单路径不同，以便鉴权操作
             */
            String PREFIX = COMMON_PREFIX + "/platform";
            /**
             * 等值查询
             */
            String SEARCH = "/search/term";
        }
        /**
         * 登录模块
         */
        interface Login {
            String PREFIX = COMMON_PREFIX;
            String LOGIN = "/login";
            String REGISTER = "/register";
            String LOGOUT ="/logout";
            String CALLBACK = "/loginCallback";
        }

        interface Token {
            String PREFIX = COMMON_PREFIX + "/token";
            String REFRESH = "/refresh";
        }

        interface Role {
            String PREFIX = COMMON_PREFIX + "/role";
        }

        interface Dept {
            String PREFIX = COMMON_PREFIX + "/dept";
            String LIST_ALL = "/list/all";
        }

        interface User {
            String PREFIX = COMMON_PREFIX + "/user";
            String RESET_PASSWORD = "/resetPassword/{id}";
        }

        interface Person {
            String PREFIX = COMMON_PREFIX + "/person";
            String CHANGE_PASSWORD = "/changePassword";
        }

        interface Menu {
            String PREFIX = COMMON_PREFIX + "/menu";
            String USER_MENUS = "/user";
            String ROLE_MENUS = "/role";
            String REFRESH_MENUS = "/refresh";
            String LIST_ALL = "/list/all";
            /**
             * 等值查询
             */
            String SEARCH = "/search/term";
        }

        interface Auth {
            String PREFIX = COMMON_PREFIX + "/auth";
            String ROLE_MENUS = "/{roleName}";
            String LIST_ALL = "/list/all";
        }

    }



}
